#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int t, i, j,m,n;
	char c;
	scanf("%d %c", &t, &c);
	m = (t + 1) / 2;
	n = (t - 1) / 2;
	for (i = 1;i <= m;i++)
	{
		for(j=1;j<=m-i;j++)
		{
			printf(" ");
		}
		for (j = 1;j <= 2 * i - 1;j++)
		{
			printf("%c", c);
		}
		printf("\n");
	}
	for (i = n;i > 0;i--)
	{
		for (j = 1;j <= m - i;j++)
		{
			printf(" ");
		}
		for (j = 1;j <= 2 * i - 1;j++)
		{
			printf("%c", c);
		}
		printf("\n");
	}
	return 0;
}